using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS.WebApiWrite.DTO
{
    /// <summary>
    /// 仓库信息DTO（用于新增和修改操作）
    /// </summary>
    public class WarehouseDTO
    {
        /// <summary>
        /// 仓库ID（修改时必填，新增时为null）
        /// </summary>
        public int? WarehouseID { get; set; }

        /// <summary>
        /// 仓库编码（后端自动生成，前端无需传值）
        /// </summary>
        public long? WarehouseCode { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string WarehouseName { get; set; }

        /// <summary>
        /// 仓库容量/m³
        /// </summary>
        public string Warehousecapacity { get; set; }

        /// <summary>
        /// 仓库主管ID
        /// </summary>
        public int SupervisorId { get; set; }

        /// <summary>
        /// 库管部门ID
        /// </summary>
        public int WarehouseDeptId { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string WarehousePhone { get; set; }

        /// <summary>
        /// 仓库地址
        /// </summary>
        public string WarehouseAddress { get; set; }

        /// <summary>
        /// 仓库状态（1.启用 2.停用）
        /// </summary>
        public int WarehouseState { get; set; }

        /// <summary>
        /// 仓库锁定（true:锁定 false:解锁）
        /// </summary>
        public bool WarehouseLockdown { get; set; }

        /// <summary>
        /// 仓库描述/备注
        /// </summary>
        public string WarehouseContent { get; set; }

        /// <summary>
        /// 数据状态（1:草稿 2:已提交）
        /// </summary>
        public int DataStatus { get; set; } = 2;

        /// <summary>
        /// 操作人名称
        /// </summary>
        public string OperatorName { get; set; }
    }
}

